
<div class="content" class="n-size-normal">
	
	<?php
	$tools[] = n_ui(n_url('open','edit'),'添加新插件',"class='n-href n-btn n-btn-ccc'");
	echo n_mod('skin')->pageHead("服务接口文档",$tools)
	?>
	<div class="clearfix">
		<?php
		if(!empty($data['data'])){
			$pbox = n_api("pbox");
			$open = n_api("open");
			$mHandle = n_api("member");
		?>
		<?php
		foreach($data['data'] as $key=>$val){
			$pinfo = $pbox->get($val['pbox_id']);
			$apilist = $open->getPboxApi($val['pbox_id']);
		?>
			<div class="n-box-float n-size-normal">
			<dl class="n-box n-sep">
				<dt class="n-box-head">
					<?=$pinfo['pname']?>
					<?=n_ui(n_url('open','apiEdit',array("main_id"=>$val['pbox_id'])),'添加接口')?>
				</dt>
				<dd class="n-box-body">
					<div class="n-notice"><?=$pinfo['descript']?></div>
					<div style="line-height: 24px;">
						<?php
						if(!empty($apilist)){
						foreach($apilist as $key1=>$val1){
						?>
						<a href="<?=n_url('open','view',array('id'=>$val1['id']))?>">
						【<?=$val1['paction']?>】<?=$val1['title']?>
						</a>
						<br />
						<?php
						}
						}
						?>
						
					</div>
				</dd>
			</dl>
			</div>
		<?php
		}
		?>
		<?php
		}else{
		?>
		<div class="n-alert">暂无接口</div>
		<?php
		}
		?>

		<div class="n-box-float n-size-normal">
		<dl class="n-box n-sep">
			<dt class="n-box-head">文档更新列表</dt>
			<dd class="n-box-body">
				<?php
				if(!empty($data['log'])){
				?>
				<ul>
				<?php
				foreach($data['log'] as $key=>$val){
				?>
					<li style="padding:5px;">
						<?=$mHandle->getAval($val['ppid'],'uname')?>于<?=date('Y-m-d H:i:s',$val['ctime'])?>
						<br />
						<?=$val['api_id']?><?=$val['descript']?></li>
				<?php
				}
				?>
				</ul>
				<?php
				}else{
				?>
				<div class="n-alert">暂无更新日志</div>
				<?php
				}
				?>
				
			</dd>
		</dl>
		</div>
	</div>

</div>		
